using System.Collections.Generic;
using UnityEngine;


public class CircleSkillSelector : ISkillSelector
{
    
    public List<Transform> SelectTarget(SkillData data, Transform skillPos)
    {
        List<Transform> taragets = new();

        Collider2D[] colliders = Physics2D.OverlapCircleAll(skillPos.position, data.attackCheckRange, data.checkLayer);

        for (int i = 0; i < colliders.Length; i++)
        {
            taragets.Add(colliders[i].transform);
        }

        return taragets;
    }
    
}
